package com.huawei.appgallery.forum.operation.report.activity;

import android.app.ActionBar;
import android.content.res.Configuration;
import android.os.Bundle;
import androidx.annotation.Nullable;
import com.huawei.appgallery.forum.base.ui.ForumActivity;
import com.huawei.appgallery.forum.operation.report.fragment.ReportFragment;
import com.huawei.secure.android.common.intent.SafeIntent;
import o.bww.a;
import o.bww.d;
import o.cgv;
import o.FragmentTransaction;

public class ReportActivity extends ForumActivity {
    private ReportFragment ͺ;

    public void onCreate(@Nullable Bundle bundle) {
        super.onCreate(bundle);
        cgv.ˋ(this, b.ˋ, b.ˎ);
        setContentView(a.ˊ);
        ActionBar actionBar = getActionBar();
        if (actionBar != null) {
            actionBar.hide();
        }
        ˎ(new SafeIntent(getIntent()).getExtras());
    }

    private void ˎ(Bundle bundle) {
        FragmentTransaction ˊ = ˏॱ().ˊ();
        this.ͺ = new ReportFragment();
        this.ͺ.ʼ(bundle);
        ˊ.ˏ(d.ˊ, this.ͺ, "report").ˏ();
    }

    public void onConfigurationChanged(Configuration configuration) {
        super.onConfigurationChanged(configuration);
        if (this.ͺ != null) {
            this.ͺ.ॱ();
        }
    }
}
